<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport"
        content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <link rel="stylesheet" href="<?php echo base_url().'public/home/' ?>css/general.css">
    <link rel="stylesheet" href="<?php echo base_url().'public/home/' ?>css/details.css">
    <script src="<?php echo base_url().'public/home/' ?>js/jquery-2.0.3.min.js"></script>
    <title>督导教学听课记录详情</title>
</head>

<body>

    <div class="min">
    <input type="hidden" name="url" id="url"value="<?php echo base_url() ?>">
    <input type="hidden" name="admin_id" id="admin_id" value="<?php echo $_SESSION[SESS_USER_HOME]['id'] ?>">

        <div class="mid">
        <div class="fk">
            <div class="pa"><span id="nam" class="name" ></span><span id="data" style="float:right;color:#b8b8b8;line-height:26px"></span></div>

            <div class="location pa" style="padding-top: 1%;color:#616161">
                <p id="listen_address" style="margin-bottom:2%;display: inline;"></p><p id="listen_class" style="display: inline;margin-left:5%"></p>
            </div>
            <div class="divider"></div>
            <div class="datas pa">教学能力总分：<div
                    style="color: #3577F7;display:inline-block;font-size: 13px;margin-left: 2%;"><span
                        id="Total_score"></span>分</div>
            </div>
            <div class="pa1">
                <div class="resultss">
                    <div class="resultss1"><span id="fs" style="line-height: 30px;color: #000;">24</span></div>教学准备
                </div>
                <div class="resultss">
                    <div class="resultss1"><span id="fs1" style="line-height: 30px;color: #000;">24</span></div>教学内容
                </div>
                <div class="resultss">
                    <div class="resultss1"><span id="fs2" style="line-height: 30px;color: #000;">24</span></div>教学实施
                </div>
                <div class="resultss">
                    <div class="resultss1"><span id="fs3" style="line-height: 30px;color: #000;">24</span></div>课堂效果
                </div>
                <div class="resultss">
                    <div class="resultss1"><span id="fs4" style="line-height: 30px;color: #000;">24</span></div>学生状态
                </div>
            </div>
        </div>
        <div class="bot">
            <div class="pa" style="width: 90%;">
                <img src="<?php echo base_url().'public/home/' ?>images/advice.png">
                <p>听课意见及建议</p>
            </div>
            <div class="tet pa " id="tet"></div>
            <div id="imgs" class="pa" style="padding-top: 0;">
            </div>
        </div>
        </div>
        
    </div>



<script>

       //获取id
       function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r != null) return unescape(r[2]); return null; //返回参数值
        }

        $(function(){
            var aid = getUrlParam('aid')
            $.ajax({
                type: "post",
                url: $("#url").val()+"/Home/Attend/attendInfo",
                data: {
                    aid:aid,
                },
                dataType: "json",
                success: function (data) {

                    var t = JSON.parse(data.v)
                    console.log(t);

                    $('#nam').text(t.class_name);
                    $('#data').text(t.created);
                    $('#listen_address').text(t.listen_address);
                    $('#listen_class').text(t.listen_class);
                    $('#Total_score').text(t.score);
                    $('#tet').text(t.advice);
                    $('#imgs').attr('src',t.img);
                }
            });
        })



    </script>
</body>

</html>